<?php
/**
 * Created by PhpStorm.
 * User: PC
 * Date: 2022-07-22
 * Time: 13:35
 */

namespace app\common\order\validate;


use think\Validate;

class OrderIncomeValidate extends Validate
{
    protected $rule = [
        'receipt_no' => ['require'],
        'income_way_id' => ['require'],
        'income_type_id' => ['require'],
        'total' => ['require', 'gt:0'],
        'receipt' => ['require'],
    ];

    protected $message = [
        'receipt_no.require' => '请填写收据编号',
        'income_way_id.require' => '请选择收款方式',
        'income_type_id.require' => '请选择收款性质',
        'total.require' => '请填写收款金额',
        'total.gt' => '收款金额必须大于0',
        'receipt.require' => '请上传收款凭证',
    ];
}